import { createWebHistory, createRouter } from "vue-router";

import Home from "@/views/home.vue";

const routes = [
  { path: "/", component: Home },
  { path: "/search/viruses/::option?", name: 'search_viruses', component: () => import('@/views/search.vue') },
  { path: "/search/bacteria", name: 'search_bacteria', component: () => import('@/views/search.vue') },
  { path: "/search/fungi", name: 'search_fungi', component: () => import('@/views/search.vue') },
  { path: "/downLoad", component: () => import('@/views/downLoad.vue') },
  { path: "/dataBrowse", component: () => import('@/views/dataBrowse.vue') },
  { path: "/genomeBrowser", name: 'genomeBrowser', component: () => import('@/views/genomeBrowser.vue') },
  { path: "/jbrowseTable", name: 'jbrowseTable', component: () => import('@/views/jbrowseTable.vue') },
  { path: "/contact", name: 'contact', component: () => import('@/views/contact.vue') },
  { path: "/statistics", name: 'statistics', component: () => import('@/views/statistics.vue') },
  { path: "/help", name: 'help', component: () => import('@/views/help.vue') },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;